package com.wen.mediatorPattern;

/**
 * 中介者具体实现角色
 *
 */
public class ConcreteMediator  extends   Mediator{

    @Override
    public void doSomethingA() {
        getConcreteColleagueA().methodA();
        getConcreteColleagueA().methodB();
    }

    @Override
    public void doSomethingB() {
        getConcreteColleagueB().methodA();
        getConcreteColleagueB().methodB();
    }
}
